<extend file='resource/view/admin'/>
<block name="content">
    <ul class="nav nav-tabs" role="tablist">
        <li class="active"><h3>栏目列表</h3></li>
    </ul>
    <br>
    <table class="table table-hover table-striped">
        <thead>
        <tr>
            <th>编号</th>
            <th>栏目名称</th>
            <th></th>
        </tr>
        </thead>
        <tbody>
        <foreach from="$cateData" value="$d">
        <tr>
            <td class=style="padding-top:13px">{{$d['cate_id']}}</td>
            <td style="padding-top:13px">{{$d['_cate_name']}}</td>
            <td>
                <div class="btn-group btn-group-sm">
                    <a href="/c/{{$d['cate_id']}}.html" class="btn btn-primary">栏目预览</a>
                    <a href="{{u('post',['cate_id'=>$d['cate_id']])}}" class="btn btn-success">编辑</a>
                    <a href="{{u('del',['cate_id'=>$d['cate_id']])}}" class="btn btn-danger">删除</a>
                </div>
            </td>
        </tr>
        </foreach>
        </tbody>
    </table>
<!--    {{$cateData->links()}}-->
</block>



